package com.nondo.dean.order.model.result;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.order.domain.OrderSubject;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-04-2016:54
 * @Version
 */
public class OrderSubjectSearchResult {

    /**
     * 主键Id
     */
    private Integer id;
    /**
     * 采购订单编码
     */
    private String orderCode;
    /**
     * 客户编号
     */
    private String userNo;
    /**
     * 客户名称
     */
    private String userName;
    /**
     * 创建时间
     */
    private String createDate;
    /**
     * 客户联系电话
     */
    private String userTelphone;
    /**
     * sap订单号
     */
    private String sapCode;
    /**
     * 订单金额
     */
    private BigDecimal amount;
    /**
     * 定制金额
     */
    private BigDecimal specialAmount;
    /**
     * 客户地址
     */
    private String userAddress;
    /**
     * 审批状态
     */
    private Integer auditStatus;
    /**
     * 订单状态
     */
    private Integer orderStatus;
    /**
     * 创建人
     */
    private Date createBy;
    /**
     * 备注
     */
    private String note;
    /**
     * 更新人
     */
    private Long updateBy;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUserTelphone() {
        return userTelphone;
    }

    public void setUserTelphone(String userTelphone) {
        this.userTelphone = userTelphone;
    }

    public String getSapCode() {
        return sapCode;
    }

    public void setSapCode(String sapCode) {
        this.sapCode = sapCode;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getSpecialAmount() {
        return specialAmount;
    }

    public void setSpecialAmount(BigDecimal specialAmount) {
        this.specialAmount = specialAmount;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Date createBy) {
        this.createBy = createBy;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public static  OrderSubjectSearchResult coverToBean(OrderSubject orderSubject){
        OrderSubjectSearchResult bean = new OrderSubjectSearchResult();
        BeanUtils.copy(orderSubject,bean);
        return bean;
    }
}
